import { treePoints } from "../algorithm/tree.js"
import { _path } from './path.js'
import { _props } from "./canvas.js";

export const _plant = (ctx, options, props) => {
    let points = treePoints(options)
    ctx.save();
    _props(ctx, props)
    _path(ctx, {
        ...options,
        points
    }, props)
    ctx.restore();
}
